package org.example.constants;

/**
 * @author Kong
 * @date 2021-9-14 16:03
 */
public enum TccState {
    PREPARED(1,"准备阶段"),
    COMMITTED(2,"已提交"),
    ROLLBACKED(3,"已回滚");
    private Integer value;
    private String message;

    TccState(Integer value, String message) {
        this.value = value;
        this.message = message;
    }

    public Integer getValue() {
        return value;
    }
}
